package com.qianying.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 品牌实体类
 *
 * @author check
 * @date 2023-10-20
 */
@Data
@Accessors(chain = true)
@TableName("custom_brand")
@Schema(description = "品牌信息")
public class CustomBrand {
    @TableId(type = IdType.AUTO)
    @Schema(description = "品牌ID(新增时忽略，更新时必填）", example = "1")
    private Long id;

    @Schema(description = "品牌名称", example = "华为")
    private String brandName;

    @Schema(description = "品牌简称", example = "HW")
    private String brandAbbreviation;

    @Schema(description = "关联客户ID", example = "1")
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Long customerId;

    @Schema(description = "关联门店ID", example = "1")
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Long shopId;

    @Schema(description = "状态(1:正常,0:禁用)", example = "1")
    private Integer status;

    @Schema(description = "创建时间(新增时忽略）", example = "2023-10-20 10:00:00")
    private Date createTime;

    @Schema(description = "更新时间(新增时忽略）", example = "2023-10-20 10:30:00")
    private Date updateTime;
}